<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title></title>
	</head>
	<body>
	<script type="text/javascript">
		//输出1到10
		for(var i=1;i<=10;i++){
			if(i==2){
				break;
			}			
			document.write(i);
		}
	</script>	
	</body>
</html>